const backroutes = [
	{
		path: '/home',
		name: 'home',
		component: "home/index",
		meta: {
			title: 'message.router.home',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: true,
			isIframe: false,
			auth: ['admin', 'test'],
			icon: 'iconfont icon-shouye',
		},
	},
	{
		path: '/system',
		name: 'system',
		component: 'layout/routerView/parent',
		redirect: '/system/menu',
		meta: {
			title: 'message.router.system',
			isLink: '',
			isHide: false,
			isKeepAlive: true,
			isAffix: false,
			isIframe: false,
			auth: ['admin'],
			icon: 'iconfont icon-xitongshezhi',
		},
		children: [
			{
				path: '/system/menu',
				name: 'systemMenu',
				component: 'system/menu/index',
				meta: {
					title: 'message.router.systemMenu',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					auth: ['admin'],
					icon: 'iconfont icon-caidan',
				},
			},
			{
				path: '/system/user',
				name: 'systemUser',
				component: 'system/user/index',
				meta: {
					title: 'message.router.systemUser',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					auth: ['admin'],
					icon: 'iconfont icon-icon-',
				},
			},
			{
				path: '/system/roles',
				name: 'systemRoles',
				component: 'system/roles/index',
				meta: {
					title: 'message.router.systemRoles',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					auth: ['admin'],
					icon: 'iconfont icon-icon-',
				},
			},
			{
				path: '/system/btnAuth',
				name: 'systemBtnAuth',
				component: 'system/btnAuth/index',
				meta: {
					title: 'message.router.systemBtnAuth',
					isLink: '',
					isHide: false,
					isKeepAlive: true,
					isAffix: false,
					isIframe: false,
					auth: ['admin'],
					icon: 'iconfont icon-icon-',
				},
			},
		],
	},
];

import { MockMethod } from 'vite-plugin-mock';
export default [
	{
		url: '/getbackroutes',
		method: 'get',
		response: () => {
			return {
				code: 0,
				data: backroutes
			};
		},
	}
] as MockMethod[];